package com.atguigu.lease.web.app.service;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.web.app.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.app.vo.apartment.ApartmentItemVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {

    /**
     * @author gengjian
     * @date 2024/12/15 17:07:31
     * 根据id获取公寓信息详情
     */
    ApartmentDetailVo getDetailById(Long id);

    /**
     * @author gengjian
     * @date 2024/12/15 18:57:49
     * 根据房间信息获取所属公寓id，再通过公寓id获取公寓信息
     */
    ApartmentItemVo getApartmentItemVo(Long id);
}
